package edu.sctu.practice.class02.Wangpeng.Assign05;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wp on 2015/11/16.
 */
public class ListTest3 {
    public static void main(String[] args) {



       List list = new ArrayList();
       list.add(3);
       list.add(6);
       list.add(9);
       list.add(10);
       list.add(85);
       list.add(86);
       list.add(95);
       list.add(402);
       list.add(501);
       System.out.println("初始的元素" + list);
       list.remove(1);
       list.remove("85");
       System.out.println("删除操作后的元素" + list);
       list.set(7, "52");
       list.set(4, "84");
       System.out.println("修改以后的元素" + list);
       System.out.println("获取第五个元素："+list.get(5));

   }
}
